package regist.aliutil;

import regist.PropertyConfig;

/**
 * 服务端API签名配置文件
 * 
 * @author: ali
 * @version: 0.1 2018-08-08 08:23:54
 */
public class Config {

	// AccessKey信息
//    public final static String ACCESSKEY = "LTAI5t6P3oZtXeer23AVgj1k";
//    public final static String ACCESSKEYSECRET = "Bss56yy0JFNGvmsEmZdxYqCnwhzDX2";
//    public static final String PRODUCT_KEY = "a1xJ4qC587v";
//    public static final String PRODUCT_SECRET = "S45tKq7fofGMElcN";
//    
//    public static final String REGIONID = "cn-shanghai";
    
    public final static String CHARSET_UTF8 = "utf8";
    
    // 定义加密方式。可选MAC算法：HmacMD5、HmacSHA1、HmacSHA256，需和signmethod取值一致。
    public static final String HMAC_ALGORITHM = "hmacsha256";

    // 接收物联网平台下发设备证书的Topic。无需创建，无需订阅，直接使用。
    public static final String REGISTER_TOPIC = "/ext/regnwl";
    
    public static final String API_ADDRESS = "https://iot."+PropertyConfig.getStr("regionId")+".aliyuncs.com";
    public static final String MQTT_ADDRESS_SUFF = ".iot-as-mqtt."+PropertyConfig.getStr("regionId")+".aliyuncs.com";
    public static final String MQTT_PORT = "1883";
    public static final String  MQTT_CLIENT_NWL_SUFF= "|securemode=-2,authType=connwl|";  //动态非预注册MQTT连接clientId后缀
    
    public static final String COAP_ADDRESS = "iot-060a0bgd.coap.iothub.aliyuncs.com";
    public static final String COAP_PORT = "5682";
    

	/*
	 * public final static Map<String,String> PRODUCT_MAP = new HashMap<String,
	 * String>(); //Map<productKey,productSecret>
	 * 
	 * static { PRODUCT_MAP.put("a1xJ4qC587v", "S45tKq7fofGMElcN");
	 * PRODUCT_MAP.put("a1ALlsBa2ZK", "zePsybCgZSSF4CQ4"); }
	 */  
    
}
